<template>
  <div class="goodsList">
<goods-list-item v-for="(item,index) in goods" :goods-item="item" :key="index" >
</goods-list-item>
  </div>
</template>

<script>
import GoodsListItem from './GoodsListItem'

export default {
    components:{
        GoodsListItem
    },
    props:{
        // 里面存放了很多数据来决定放多少个item
        goods:{
            type:Array,
            default(){
                return []
            }
        }
    }
}
</script>

<style>
.goodsList {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}
</style>